// MappingData.h: interface for the CMappingData class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPPINGDATA_H__B8E91F6D_ED8B_40E2_9CBE_22C7841B9DCC__INCLUDED_)
#define AFX_MAPPINGDATA_H__B8E91F6D_ED8B_40E2_9CBE_22C7841B9DCC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SLOT_NO		25
#define IN_CHECK	1
#define WORK_POS	1

#include "CFileManager.h"

class CMappingData  : public CFileManager 
{
private:
	BOOL m_nMappingData[SLOT_NO];
	int m_nWorkPos[SLOT_NO][WORK_POS];
	int m_nMappingCount;
	int m_nWaferCount;
	int m_nWaferStartPoint;
	BOOL m_nWaferSele;

public:
	CMappingData(CString strFileName);
	virtual ~CMappingData();

	void SetMappingCount(int iCount);					//	{ m_nMappingCount = iCount;}
	void SetMappingData(UINT Noslot,BOOL m_flgset)			{ m_nMappingData[Noslot] = m_flgset;}

	void SetWorkPos(UINT Noslot,int WorkPos, int SetData)	{ m_nWorkPos[Noslot][WorkPos] = SetData; }
		
	int  GetMappingCount();							//		{ return m_nMappingCount; }
	BOOL GetMappingData(UINT Noslot)						{ return m_nMappingData[Noslot];}
	int	 GetWorkPos(UINT Noslot,int WorkPos)					{ return m_nWorkPos[Noslot][WorkPos]; }

	void Datainit();
	void SetWaferCountData(int nWaferCount)					{m_nWaferCount = nWaferCount;}
	int GetWaferCountData()									{ return m_nWaferCount;}
	void SetWaferStartPoint(int nWaferStartPoint)			{ m_nWaferStartPoint = nWaferStartPoint;}
	int GetWaferStartPoint()								{ return m_nWaferStartPoint;}

	void SetWaferSelection(BOOL nWaferSele) { m_nWaferSele = nWaferSele;}
	BOOL GetWaferSelection(){return m_nWaferSele;}
};

#endif // !defined(AFX_MAPPINGDATA_H__B8E91F6D_ED8B_40E2_9CBE_22C7841B9DCC__INCLUDED_)
